<template>
  <div>
      <child1 @save="saveOne"></child1>
      <child2 ref="child2Container"> </child2>
  </div>

</template>

<script>

    import child1 from './components/son1';

    import child2 from './components/son2';

    export default {

        name: 'demoTwenty5',
        components: {
            child1,
            child2
        },

        methods: {
            saveOne(){
                console.log('////')
                 console.log(this.$refs.child2Container)
                this.$refs.child2Container.aaa();

            }

        }

    }

</script>
